<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;

$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
$return['basic']=$this->plugin_setting('setting');
if($_RQ['op']=='list'){
	$params=array('uniacid'=>$_SESSION['uniacid'],'status'=>'1');
	if(!empty($_RQ['keyword'])){
		$params['title like']='%'.trim($_RQ['keyword']).'%';
	}
	//分类
	$list=pdo_getall('jy_cmsarticle_videogroup',$params,'','','paixu asc');
	foreach($list as &$item){
		$item['sum']=pdo_count('jy_cmsarticle_video',array('uniacid'=>$_SESSION['uniacid'],'status'=>1,'group_id'=>$item['id']));
	}
	$return['post']=array();
	
	$return['list']=$list;
	$return['account']=$_SESSION['account'];
	exi($return);
}
